package oldFiles;
import lejos.nxt.Button;
import lejos.subsumption.*;

public class DetectExit implements Behavior {
	
	private boolean _suppressed = false;
	
	@Override
	public void action() {
		System.exit(0);
		
	}

	@Override
	public void suppress() {
		_suppressed = true;
	}

	@Override
	public boolean takeControl() {
		return Button.ESCAPE.isPressed();
	}
	
}
